<?php
	session_start();
	include 'config.inc.php';
	include $script['MenuCR'];
	include $script['dataAccess'];
	
	$_SESSION['SeConnecter'] = 'False';


	if ($_SESSION['SeConnecter'] == 'False' && !isset($_GET['action']))
	{
		include $script['SeConnecter'];
	}
	else
	{
		if ($_GET['action'] == 'Accueil')
		{
			include $script['Accueil'];
		}
		elseif ($_GET['action'] == 'FormMedicament')
		{
			include $script['FormMedicament'];
		}	
		elseif($_GET['action'] == 'CherchePraticien')
		{
			include $script['CherchePraticien'];
		}
		elseif($_GET['action'] == 'ChercheVisiteur')
		{
			include $script['ChercheVisiteur'];
		}
		elseif($_GET['action'] == 'ModifierVisiteur')
		{
			include $script['ModifierVisiteur'];
		}
		elseif($_GET['action'] == 'FormPraticien')
		{
			include $script['FormPraticien'];
		}
		elseif($_GET['action'] == 'FormVisiteur')
		{
			include $script['FormVisiteur'];
		}
		elseif($_GET['action'] == 'FormRapportVisite')
		{
			include $script['FormRapportVisite'];
		}	
		elseif($_GET['action'] == 'Quitter')
		{
			include $script['SeConnecter'];
		}
		else
		{
			include $script['Accueil'];
		}
	}		
	
	include $page['charte'];
?>